//
//  XMTableViewCell.swift
//  AnneKit-Swift
//
//  Created by 宁小陌 on 2021/2/7.
//  Copyright © 2021 宁小陌. All rights reserved.
//

import UIKit

class XMTableViewCell: UITableViewCell {

    var imagesView: UIImageView!
    var goodsNameLabel: UILabel!
    var remarkLabel: UILabel!
    var pricekLabel: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.selectionStyle = UITableViewCell.SelectionStyle.none
        self.backgroundColor = .clear
        self.createCellUI()
    }
     
    func createCellUI(){
        imagesView = UIImageView()
        imagesView!.backgroundColor = UIColor.lightGray
        contentView.addSubview(imagesView!)
        imagesView?.image = UIImage(named: "mall_icon_mx")
        
        imagesView.snp.makeConstraints { (make) in
            make.centerY.equalTo(self)
            make.left.equalTo(self).offset(25)
        }
    }
}
